<template>
	<!--
	<view style="margin: 10px 0;padding: 10px; border-radius: 10px;background-color: #fff;">
		<view style="padding: 10px;display: flex;justify-content:space-between;" :class="warn===1 ? 'warn-address' : ''"
			@tap="shengChange">
			<view style="font-weight: bold;"> 省 </view>
			<view v-if="curSheng">
				<view> {{ curSheng }}</view>
			</view>
			<view v-else>
				<text style="color: #aaa;">请选择省份</text>
			</view>
		</view>		
		<tn-action-sheet ref="actionSheetRef"></tn-action-sheet>
	</view>
	-->
	<view>
		
	</view>
</template>

<script>
	import psMethod from '@/common/psMethod.js'
	export default {
		data() {
			return {
				sConf: getApp().globalData,
				areaTopData: [], // 省
				areaMiddowData: [], // 市
				areaBottonData: [], // 区县
				warn: 0,
				curSheng: null,
				curShi: null,
				curXian: null,
			}
		},
		methods: {
			loadDataArea(e = null) {
				console.log('loadDataArea', e);
				let host = this.sConf.host + '/api/hasArea/';
				let token = this.sConf.token || '';
				let data = {}
				if (!e) {
					data.level = 1
				}
				psMethod.authenticatorGetSync(host, token, data).then(res => {
					console.log('加载省列表', res);
					if (res.rescode === 200) {
						if (!e) {
							this.areaTopData = res.resmsg
						}
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>

</style>